package com.sky.mapper;

import com.sky.entity.SetmealDish;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

import java.util.List;

@Mapper
public interface SetmealDishMapper {
    /**
     * 添加套餐菜品关联
     * @param setmealDishes
     */
    void insertSetMealDish(@Param("list") List<SetmealDish> setmealDishes);

    /**
     * 删除套餐的菜品关联
     * @param ids
     */
    void deleteSetmaelDish(@Param("ids") List<Long> ids);

    /**
     * 获取套餐菜品关联
     * @param id
     * @return
     */
    List<SetmealDish> selectSetmealDishesById(@Param("id") Long id);

    /**
     * 查询未起售菜品
     * @param disable
     * @param id
     * @return
     */
    Integer selectStatusCount(@Param("status") Integer disable,@Param("id") Long id);
}
